package com.stx.test.classAndObject;

/**
 * packageName com.stx.test
 *
 * @author YangYi
 * @className Hero
 * @date 2025/9/11
 * @description TODO
 */
public class Hero {
    String name;
    double blood;
    double blue;
    double speed;

    /**
     * 攻击一次，减10滴蓝
     */
    public void attack(){
        if(blue < 10){
            System.out.println("魔法值不够，请加蓝");
        }else {
            blue -= 10;
            System.out.println("一刀9999999");
        }
    }

    /**
     * 加蓝
     */
    public void addBlue(){
        blue += 50;
    }
}
